package com.nanjia.boot.product.sku.converter;

import com.nanjia.boot.product.sku.model.entity.ProductSku;
import com.nanjia.boot.product.sku.model.form.ProductSkuForm;
import org.mapstruct.Mapper;

/**
 * 商品库存单元(SKU)对象转换器
 *
 * @author 周洋
 * @since 2025-07-10 14:15
 */
@Mapper(componentModel = "spring")
public interface ProductSkuConverter{

    ProductSkuForm toForm(ProductSku entity);

    ProductSku toEntity(ProductSkuForm formData);
}